package org.blueforce.web.controller.sample;

import java.util.Arrays;

import org.blueforce.domain.model.sample.Sample;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/")
public class SampleController {
	@RequestMapping(value="/sample/*", method=RequestMethod.GET) 
	public ModelAndView requestCreate() {
		return new ModelAndView().addObject("sample", Arrays.asList(
				new Sample().setId(Long.valueOf(1)), 
				new Sample().setId(Long.valueOf(2)), 
				new Sample().setId(Long.valueOf(3)), 
				new Sample().setId(Long.valueOf(4)), 
				new Sample().setId(Long.valueOf(5)), 
				new Sample().setId(Long.valueOf(6)), 
				new Sample().setId(Long.valueOf(7)), 
				new Sample().setId(Long.valueOf(8)), 
				new Sample().setId(Long.valueOf(9)), 
				new Sample().setId(Long.valueOf(10)) 
		));
	}
}
